<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@ include file="/common/global.jsp" %>
    <title>增加数据字典</title>
    <script type="text/javascript">

        function abc() {
            $.ajax({
                url: '${ctx}/dict/ins',
                type: 'get',
                data: {sa: 'ajaxString_a', sb: 'ajaxString_b'},
                success: function(data) {
                    if(data.result == true) {
                        notySuccess("添加成功");
                    }
                    else {
                        notyError("添加失败");
                    }
                }
                }
            );
            alert("2");
        }
        <%--$(function () {--%>
               <%--alert("1");--%>
            <%--// 跟踪--%>
            <%--$('#dict').click(function () {--%>
                <%--$.ajax({--%>
                        <%--url: "${ctx}/dict/ins",--%>
                        <%--type: "get",--%>
                        <%--data: {sa: 'ajaxString_a', sb: 'ajaxString_b'}--%>
                <%--}--%>
                <%--)--%>
            <%--})--%>



        <%--});--%>
    </script>
</head>


<body>
<form id="dictForm" method="post" action="${ctx}/dict/insertDict">

    字典值:<input type="text" name="dictValue"/><br>
    字典描述：<input type="text" name="dictDesc"/><br>
    字典的顺序 ： <input type="text" name = "dictSort"></br>
         <input type="text" name="dictParentId" hidden="hidden" value="${parentId }">

    <input name="dict" id="dict" type="submit"/>
</form>

<table width="100%" class="need-border">

    <thead>
    </thead>
    <tbody>

    </tbody>
</table>

</body>
</html>
